<input [placeholder]="placeholder" type="text" pInputText [disabled]='disabled' [(ngModel)]='currentVal' [ngClass]="{hasIcon: clear}" />
<i *ngIf="clear" class="fa fa-remove inputClearIcon" (click)='clearVal()'></i>